package designpattern.visitor.now;

/**
 * 新增功能３
 */
public class ConVisitor3 implements Visitor {
    @Override
    public void visitEnterConsumer(EnterpriseConsumer enterpriseConsumer) {
        System.out.println("企业实现功能3 " + enterpriseConsumer.toString());
    }

    @Override
    public void visitPersonConsumer(PersonConsumer personConsumer) {
        System.out.println("个人实现功能3 " + personConsumer.toString());
    }
}
